package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lidong9144@163.com 17-3-16.
 */
@Data
@Table(name = "template_monitor_limit_value")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TMonitorLimitValue implements Serializable {

    @Transient
    private static final long serialVersionUID = -4131324723461343413L;

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    @NotNull
    private Long variableId;
    @NotNull
    private String name;
    private Integer level;
    @NotNull
    private String rule;
    @NotNull
    private Double value;
    private Integer state;
    @JsonIgnore
    private LocalDateTime createTime;
    @JsonIgnore
    private LocalDateTime updateTime;

    @Transient
    @JsonIgnore
    private String kmxVariableNameEn;

    @Transient
    @JsonIgnore
    private String sensorNameEn;

}
